<?php
function error_list()
{
	$error_info['900000'] = array('key'=>'900000','code'=>'IERRCODE_SUCCESS','msg'=>'成功');

	$error_info['910000'] = array('key'=>'910000','code'=>'IERRCODE_NEEDSYN','msg'=>'授权数不一致需要同步');

	$error_info['910001'] = array('key'=>'910001','code'=>'IERRCODE_ZTNEEDSYN','msg'=>'账套不存在，需要同步');

	$error_info['110000'] = array('key'=>'110000','code'=>'IERRCODE_GETVERSIONINFO','msg'=>'获取版本信息错误');

	$error_info['210000'] = array('key'=>'210000','code'=>'IERRCODE_KEYAVAILED','msg'=>'授权无效');

	$error_info['210001'] = array('key'=>'210001','code'=>'IERRCODE_TIMEOUT','msg'=>'接收超时');

	$error_info['210004'] = array('key'=>'210004','code'=>'IERRCODE_LICCOUNTAVAILED','msg'=>'超过授权数');

	$error_info['210005'] = array('key'=>'210005','code'=>'IERRCODE_KEYEXPIRE','msg'=>'授权已过期');

	$error_info['310000'] = array('key'=>'310000','code'=>'IERRCODE_VERSIONERR','msg'=>'版本错误');

	$error_info['310001'] = array('key'=>'310001','code'=>'IERRCODE_VERSIONLOW','msg'=>'版本太低,需要升级');

	$error_info['310002'] = array('key'=>'310002','code'=>'IERRCODE_VERSIONBIG','msg'=>'版本太高，需要服务');

	$error_info['311000'] = array('key'=>'311000','code'=>'IERRCODE_VERSIONERR','msg'=>'信息异或失败，信息被修改');

	$error_info['311001'] = array('key'=>'311001','code'=>'IERRCODE_AVAILEDHANDLE','msg'=>'句柄不匹配');

	$error_info['320001'] = array('key'=>'320001','code'=>'IERRCODE_CMDERR','msg'=>'指令错误');

	$error_info['341000'] = array('key'=>'341000','code'=>'IERRCODE_LOGINERR','msg'=>'登录失败，尚未注册审核');

	return $error_info;
}

function receive_info()
{
	$receive_info['1000'] = array('key'=>'1000','code'=>'MSGLOGIN','msg'=>'登陆');

	$receive_info['9000'] = array('key'=>'9000','code'=>'MSGLOGOUT','msg'=>'登出');

	$receive_info['9900'] = array('key'=>'9900','code'=>'MSGDELETE','msg'=>'删除');

	$receive_info['9901'] = array('key'=>'9901','code'=>'MSGHALT','msg'=>'停用');

	$receive_info['2000'] = array('key'=>'2000','code'=>'MSGAPPROVE','msg'=>'审核');

	$receive_info['1001'] = array('key'=>'1001','code'=>'MSGCHECK','msg'=>'更新');

	$receive_info['3000'] = array('key'=>'3000','code'=>'MSGSYNCHR','msg'=>'同步');

	return $receive_info;
}
?>